-- GENERATED SPELL FOR [Jailor Eston] --


function spell0_2427(pUnit, Event) --@Enslave,n/a--
pUnit:FullCastSpellOnTarget(3442,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2427', 15269, 1)
end

function Sorts_2427(pUnit, Event)
local choix_sorts_2427 = math.random(0, 0)
if choix_sorts_2427 == 0 then
pUnit:RegisterEvent('spell0_2427', 1, 1)
end
end

function mob2427_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2427', math.random(1500, 3000), 1)
end

function mob2427_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2427_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2427_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2427, 1, 'mob2427_Action')
RegisterUnitEvent(2427, 2, 'mob2427_Leave')
RegisterUnitEvent(2427, 3, 'mob2427_Kill')
RegisterUnitEvent(2427, 4, 'mob2427_Die')
